<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <!--<meta name="csrf-token" content="{{ csrf_token() }}">-->

    <block name="title"><title>Vanity</title></block>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/AdminLTE.min.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/jquery-jvectormap.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/_all-skins.min.css">
    <!-- Pace style -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/pace.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style>
        .re-header-img{
            height:50px;
            padding: 5px;
        }
    </style>
    <block name="css"></block>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">

        <!-- Logo -->
        <a href="{:U('/index')}" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini">V</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg">Vanity</span>
        </a>

        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="height: 50px;padding: 5px;">
                            <img src="__ROOT__/Uploads{$admin.image|setImage=###}" class="user-image" alt="User Image">
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="__ROOT__/Uploads{$admin.image|setImage=###}" class="img-circle" alt="User Image">
                                <p>
                                    {$admin.name}
                                </p>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-right">
                                    <a class="btn btn-default btn-flat" href="" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
                                        登出
                                    </a>
                                    <form id="logout-form" action="{:U('/Admin/Login/logout')}" method="POST" style="display: none;">
                                    </form>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                </ul>
            </div>

        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="__ROOT__/Uploads{$admin.image|setImage=###}" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>{$admin.name}</p>
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">MAIN NAVIGATION</li>
                <li>
                    <a href="{:U('/Admin/Index/index')}">
                        <i class="fa fa-dashboard"></i> <span>控制面板</span>
                    </a>
                </li>
                <volist name="menu.top" id="vo">
                    <li class="treeview <if condition="$vo.id eq $menu['openarr'][1]">active</if>" >
                        <a href="#">
                            <i class="fa {$vo.icon}"></i>
                            <span>{$vo.label}</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                        </a>
                        <ul class="treeview-menu">
                            <?php
                            foreach($menu[$vo['id']] as $k => $v){
                            ?>
                            <li <if condition="$v.id eq $menu['openarr']['0']">class="active"</if>><a href="{$v.name|changeUrl}"><i class="fa fa-circle-o"></i> {$v.label}</a></li>
                            <?php }?>
                        </ul>
                </volist>
                <li class="header">LABELS</li>
                <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>
    <block name="content">

    </block>
    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <div class="pull-right hidden-xs" style="line-height: 0px;">
            Designed by <b><a href="https://gitee.com/hx94">vanity</a></b>
        </div>
    </footer>
</div>
<!-- ./wrapper -->
<!-- jQuery 3 -->
<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="__PUBLIC__/Admin/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="__PUBLIC__/Admin/js/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="__PUBLIC__/Admin/js/adminlte.min.js"></script>
<!-- Sparkline -->
<script src="__PUBLIC__/Admin/js/jquery.sparkline.min.js"></script>
<!-- jvectormap  -->
<script src="__PUBLIC__/Admin/js/jquery-jvectormap-1.2.2.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery-jvectormap-world-mill-en.js"></script>
<!-- PACE -->
<script src="__PUBLIC__/Admin/js/pace.min.js"></script>
<!-- SlimScroll -->
<script src="__PUBLIC__/Admin/js/jquery.slimscroll.min.js"></script>
<!-- ChartJS -->
<script src="__PUBLIC__/Admin/js/Chart.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="__PUBLIC__/Admin/js/demo.js"></script>
<script>
    $(document).ajaxStart(function() { Pace.restart(); });
</script>
<block name="js"></block>
</body>
</html>